package com.bianqian.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Spring Boot 主启动类
 */
@SpringBootApplication
@EnableTransactionManagement
public class BianqianDemoApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(BianqianDemoApplication.class, args);
        System.out.println("=================================");
        System.out.println("     bianqian-demo 启动成功！     ");
        System.out.println("     访问地址: http://localhost:8081");
        System.out.println("     登录接口: POST /api/pages/login");
        System.out.println("     注册接口: POST /api/pages/register");
        System.out.println("     登出接口: POST /api/pages/logout");
        System.out.println("     获取用户信息: GET /api/user/profile");
        System.out.println("     更新用户信息: PUT /api/user/profile");
        System.out.println("     注销账号: DELETE /api/user/delete");
        System.out.println("     获取分类列表: GET /api/category/list");
        System.out.println("     创建分类: POST /api/category/create");
        System.out.println("     更新分类: PUT /api/category/update");
        System.out.println("     删除分类: DELETE /api/category/delete");
        System.out.println("     获取分类详情: GET /api/category/detail");
        System.out.println("     更新分类统计: POST /api/category/updateCount");
        System.out.println("=================================");
    }
}
